﻿@model List<FOModels.BlogNews.BlogNewsParentModels>
@if (Model.Count() > 0)
{
    foreach (var m in Model)
    {
    <section class="category skin1">
        <header>
            <hgroup>
                <h1><a class="parent" title="@m.BlogNewsCategoryName">@m.BlogNewsCategoryName </a></h1>
                @foreach (var c in m.ListCate)
                {
                    <h2><a href="@Url.Action("BlogNewsCate", "BlogNews", new {BlogNewsCategoryName = FO.Models.Conver.ConvertToUnSign(c.BlogNewsCategoryName.ToLower()),BlogNewsCategoryID = c.BlogNewsCategoryID })">@c.BlogNewsCategoryName</a></h2>
                }
            </hgroup>
            <!-- Follow Menu -->

        </header>
        <article class="featured ">
            <p class="type"></p>
            <header>
                <h1>
                    <a href="@Url.Action("BlogNewsDetail", "BlogNews", new { BlogNewsTitle = FO.Models.Conver.ConvertToUnSign(m.BlogNewsItem.BlogNewsTitle.ToLower()), BlogNewsID = m.BlogNewsItem.BlogNewsID })">@m.BlogNewsItem.BlogNewsTitle
                    </a>

                </h1>
                <time datetime="@m.BlogNewsItem.CreateDate.ToShortDateString() - @m.BlogNewsItem.CreateDate.ToShortTimeString()">@m.BlogNewsItem.CreateDate.ToShortDateString() - @m.BlogNewsItem.CreateDate.ToShortTimeString()</time>
            </header>
            <div class="cover">
                <a href="@Url.Action("BlogNewsDetail", "BlogNews", new { BlogNewsTitle = FO.Models.Conver.ConvertToUnSign(m.BlogNewsItem.BlogNewsTitle.ToLower()), BlogNewsID = m.BlogNewsItem.BlogNewsID })">
                    <img src="@m.BlogNewsItem.BlogNewsImg" height="120" width="160" />
                </a>

            </div>
            <p class="summary">@m.BlogNewsItem.BlogNewsSumary</p>

        </article>

        <div class="top">

            @foreach (var bn in m.ListNewsRelative)
            {
                <article class="">
                    <div class="cover" style="background-image: url(@bn.BlogNewsImg)">
                        <a href="@Url.Action("BlogNewsDetail", "BlogNews", new { BlogNewsTitle = FO.Models.Conver.ConvertToUnSign(bn.BlogNewsTitle.ToLower()), BlogNewsID = bn.BlogNewsID })"></a>
                    </div>
                    <header>
                        <h1>
                            <a href="@Url.Action("BlogNewsDetail", "BlogNews", new { BlogNewsTitle = FO.Models.Conver.ConvertToUnSign(bn.BlogNewsTitle.ToLower()), BlogNewsID = bn.BlogNewsID })">@bn.BlogNewsTitle
                            </a>

                        </h1>
                        <time datetime="@bn.CreateDate.ToShortDateString() - @bn.CreateDate.ToShortTimeString()">@bn.CreateDate.ToShortDateString() - @bn.CreateDate.ToShortTimeString()</time>
                    </header>
                </article>

            }

        </div>


    </section>
    }
}